package com.example.form_repeat_text.controller;

import com.example.form_repeat_text.common.dto.User;
import com.example.form_repeat_text.common.vaildtor.NoRepeatSubmit;
import com.example.form_repeat_text.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@Slf4j
@RestController
@RequestMapping
public class UserController {


    @NoRepeatSubmit
    @PostMapping("/login")
    public R<String> text(User user, HttpServletRequest httpServletRequest){
        log.info("发送成功");
        return R.success("成功的发送");
    }




}
